import {CFormGroupProps} from "@/components/CProForm/CFormItem/type";

const fields: CFormGroupProps<any>[] = [
  {
    itemList: [
      {
        name: "nickName",
        label: "昵称",
        labelAlign: "right",
        rules: [
          {
            message: "昵称是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入昵称",
      },
      {
        name: "realName",
        label: "真实姓名",
        labelAlign: "right",
        rules: [
          {
            message: "真实姓名是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入真实姓名",
      },
      {
        name: "phone",
        label: "手机号",
        labelAlign: "right",
        rules: [
          {
            message: "手机号是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入手机号",
      },
      {
        name: "email",
        label: "邮箱",
        labelAlign: "right",
        rules: [
          {
            message: "邮箱是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入邮箱",
      },
    ]
  },
  {
    itemList: [
      {
        name: "avatar",
        label: "头像",
        labelAlign: "right",
        rules: [
          {
            message: "头像是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入头像",
      },
      {
        name: "status",
        label: "后台用户状态",
        labelAlign: "right",
        rules: [
          {
            message: "后台用户状态是必填项",
            required: true
          }
        ],
        width: "md",
        placeholder: "请输入后台用户状态",
      },
    ]
  },
]
export default fields;
